type github.com/gotd/td/telegram/downloader.block
17 uses
github.com/gotd/td/telegram/downloader (current package)
parallel.go#L27: toWrite := make(chan block, threads)
reader.go#L13: type block struct {
reader.go#L22: func (b block) last() bool {
reader.go#L61: func (r *reader) Next(ctx context.Context) (block, error) {
reader.go#L69: func (r *reader) nextHashed(ctx context.Context) (block, error) {
reader.go#L73: return block{}, err
reader.go#L76: return block{}, nil
reader.go#L82: return block{}, err
reader.go#L88: return block{}, ErrHashMismatch
reader.go#L110: func (r *reader) nextPlain(ctx context.Context) (block, error) {
reader.go#L118: return block{offset: offset, partSize: r.partSize}, nil
reader.go#L124: func (r *reader) next(ctx context.Context, offset int64, limit int) (block, error) {
reader.go#L135: return block{}, errors.Wrap(err, "get next chunk")
reader.go#L138: b := block{
sink.go#L24: func writeAtLoop(w io.WriterAt, s sink, toWrite <-chan block) func(context.Context) error {
sink.go#L45: func writeLoop(w io.Writer, s sink, toWrite <-chan block) func(context.Context) error {
stream.go#L17: toWrite := make(chan block, 1)
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |